package com.lingxu.module.database.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lingxu.base.common.api.vo.Result;
import com.lingxu.module.database.entity.Model;
import com.lingxu.module.database.entity.ModelRun;
import com.lingxu.module.database.entity.SourceStcHis;

/**
 * @Title: DataBaseService
 * @Package: com.lingxu.module.database.service
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2023/8/1 16:55
 * @Description:
 * @Version: 1.0.0
 */
public interface UseDataBaseService extends IService<SourceStcHis> {

    //新增
    Result addUseDataBase(SourceStcHis stcHis);

    //查询待审批列表
    Result findNeedApprovalList(Integer page, Integer limit,String state,String region);

    //审批
    Result updateApproval(SourceStcHis stcHis);

    //保存申请表
    Result saveApprovalWord(SourceStcHis stcHis);

    //查询红名单查看权限待审批列表
    Result findApprovalRedPerson(Integer page, Integer limit, String state);

    //审批红名单查看权限
    Result updateApprovalRedPerson(ModelRun modelRun);

    //保存红名单申请表
    Result updateApprovalRedPersonWord(ModelRun mode);

    //查询模型发布审批
    Result findModelApproval(Integer page, Integer limit, String state,String name);

    //模型发布审批
    Result updateModelApproval(Model model);

    //查询二级库申请详情
    Result findNeedApprovalDetail(String id);
}
